home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Frameworks / Grant's CGI Framework 1.0b14 / Util / compiler_stuff.h < prev    next >
C/C++ Source or Header  |  1996-04-10  |  794b  |  47 lines

  1. #pragma once
  2. /*****
  3.  *
  4.  *    compiler_stuff.h
  5.  *
  6.  *    Stuff to deal with particular compilers' idiosyncrasies
  7.  *
  8.  *****/
  9.  
  10. #include "MyConfiguration.h"
  11.  
  12.  
  13. /***  CONSTANTS  ***/
  14.  
  15. /* are we compiling for Symantec compilers? */
  16. #if defined(__SC__) || defined(THINK_C)
  17.     #define kCompiling_For_Symantec        1
  18. #else
  19.     #define kCompiling_For_Symantec        0
  20. #endif
  21.  
  22. /* make sure that nil works as expected for Symantec compilers */
  23. #if !defined(nil) || ( !defined(__cplusplus) && kCompiling_For_Symantec )
  24.     #ifdef nil
  25.         #undef  nil
  26.     #endif
  27.     #define nil    0
  28. #endif
  29.  
  30. /**  PROFILER SUPPORT  **/
  31.  
  32. #if __powerc
  33.     #define kProcessorString "PPC"
  34. #else
  35.     #define kProcessorString "68K"
  36. #endif
  37.  
  38. /**  PASCAL SUPPORT  **/
  39.  
  40. #if kCompileWithPascalSupport
  41.     #define p_export    pascal
  42. #else
  43.     #define p_export    
  44. #endif
  45.  
  46. /*****  EOF  *****/
  47.